import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from "./store";

// import Element Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// import iconfont
import '@/assets/iconfont/iconfont.css'

// import index.less
import '@/styles/index.less'

// 引入svg icon注册脚本
import "virtual:svg-icons-register";

//注册全局组件
import SvgIcon from "@/components/SvgIcon/index.vue";
import ColorIcon from "@/components/ColorIcon/index.vue";

const app = createApp(App)

app.use(router)
app.use(store)
app.use(ElementPlus)
app.component("SvgIcon", SvgIcon);
app.component("ColorIcon", ColorIcon);

app.mount('#app')

